import { i18n } from '@/locales'
const { $t } = i18n

export const columns = [
	{
		title: $t('informationPortal.SerialNumber', '序号'),
		dataIndex: 'index',
		key: 'index',
		width: 64,
		align: 'center',
	},
	{
		title: $t('informationPortal.title', '标题'),
		dataIndex: 'title',
		key: 'title',
		slots: { customRender: 'title' },
		ellipsis: true,
	},
	{
		title: $t('informationPortal.category', '分类'),
		dataIndex: 'category_name',
		key: 'category_name',
		// width: 144,
		slots: { customRender: 'category_name' },
		ellipsis: true,
	},
	{
		title: $t('informationPortal.creator', '创建人'),
		dataIndex: 'creator',
		key: 'creator',
		width: 144,
		slots: { customRender: 'creator' },
		// ellipsis: true,
	},
	{
		title: $t('informationPortal.clicks', '点击数'),
		dataIndex: 'hits',
		key: 'hits',
		width: 144,
		ellipsis: true,
		align: 'left',
	},
	{
		title: $t('informationPortal.announced', '发布时间'),
		dataIndex: 'pubdate',
		key: 'pubdate',
		width: 185,
		slots: { customRender: 'pubdate' },
		// ellipsis: true,
	},
]
